package model

import (
	"time"

	"im/common"
)

// swagger:model AutoIdModel
type AutoId struct {
	Id int64 `json:"id" xorm:"not null pk autoincr BIGINT"`
}

// swagger:model UIdModel
type UId struct {
	UserId int64 `json:"user_id" xorm:"user_id not null BIGINT"`
}

// swagger:model NamespaceLayer
// 命名空间区分
type NamespaceLayer struct {
	AppsId int64 `json:"apps_id" xorm:"INT notnull comment('app id') index"`
}

// swagger:model TimeModel
type TimeModel struct {
	Created common.Time `json:"created" xorm:" 'created' created not null TIMESTAMP"`
	Updated common.Time `json:"updated" xorm:" 'updated' updated TIMESTAMP"`
}

// swagger:model TimeModel
type TimeModelOfEs struct {
	Created time.Time `json:"created" xorm:" 'created' created not null TIMESTAMP"`
	Updated time.Time `json:"updated" xorm:" 'updated' updated TIMESTAMP"`
}
